package com.payment.web.controller.app;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.payment.common.base.AjaxResult;
import com.payment.system.service.IPaymentOrderService;

/**
 * @author fuzhili
 * @Description: app端交易明细处理
 * 交易明细
 * @date 2019/1/25 15:40
 */
@Controller
@RequestMapping("/app/transaction")
public class TransactionController {

    @Autowired
    private IPaymentOrderService paymentOrderService;

    /**
     * app 端交易明细：订单类型（0 无卡消费 1养卡消费 2养卡代付3无卡出款5提现 6充值升级）
     * @param merchantId 用户ID
     * @param pageNum  页数
     * @param pageSize  每页条数
     * @return
     */
    @RequestMapping("/transactionDetailsList")
    @ResponseBody
        public AjaxResult transactionDetails(String merchantId, Integer pageNum, Integer pageSize) {
        return paymentOrderService.transactionDetailsList(merchantId,pageNum,pageSize);
    }
    
    
}
